/* ------------------------------------------------------------
* 登录页样式
* ------------------------------------------------------------ */
$login-width: 380px !default; // 登录框宽度
$color-main: #0081fa !default;
$font-size-small: 12px !default;
$color-bg-content: #FFF !default;

// -------------------- 登录页 --------------------
.tw-loginpage {
  display: flex;
  height: calc(100vh - 40px);
  flex-direction: row-reverse;
  align-items: center;
  padding-right: 12.7%;
  transition: opacity 0.5s ease-in-out;
  background: url("./images/loginbg.png") no-repeat 17% center / 596px 521px;
}
.tw-loginpage.xbg2 {
  background: url("./images/login-img2.png") no-repeat 17% center / 596px 521px;
}
.tw-loginpage-header {
  position: absolute;
  top: 20px;
  left: 40px;

  img {
    max-height: 50px;
  }
}
.tw-loginpage-body {
  display: flex;
  width: 428px;
  min-height: 450px;
  padding: 14px;
  background: #FFFFFF;
  box-shadow: 0px 12px 24px 1px #D1E8FF;
  border-radius: 12px 12px 12px 12px;
  border: 1px solid #D1E8FF;
}

// -------------------- 登录相关图标 --------------------
.tw-loginicon {
  display: inline-block;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-size: contain;
}

.tw-loginicon.x18 {
  width: 18px;
  height: 18px;
}

.tw-loginicon.x32 {
  width: 32px;
  height: 32px;
}
.tw-loginicon.x48 {
  width: 48px;
  height: 48px;
}

.tw-loginicon.xuser {
  background-image: url("./images/login-user.svg");
}

.tw-loginicon.xpwd {
  background-image: url("./images/login-pwd.svg");
}

.tw-loginicon.xvalidation {
  background-image: url("./images/login-validation.svg");
}

.tw-loginicon.xandroid {
  cursor: pointer;
  height: 20px;
  width: 20px;
  background-image: url("./images/login-android.svg");
}

.tw-loginicon.xwindows {
  cursor: pointer;
  height: 20px;
  width: 20px;
  background-image: url("./images/login-windows.svg");
}

.tw-loginicon.xlogo {
  width: 380px;
  height: 60px;
  background-image: url("./images/login-logo.svg");
}

.tw-loginicon.xscan {
  width: 72px;
  height: 92px;
  margin-bottom: 20px;
  margin-right: -20px;
  background-image: url("./images/qrsao.svg");
}

.tw-login-logintip {
  display: inline-block;
  padding: 2px 10px 2px 5px;
  border-radius: 4px;
  color: $color-main;
  cursor: pointer;
  border: 1px solid $color-main;
  position: relative;
}
::v-deep .tw-login-logintip i.el-icon-caret-top {
  font-size: 20px;
  position: absolute;
  right: -15px;
  top: 3px;
  transform: rotate(90deg);
}

// -------------------- 登录框 --------------------
// 登录框: 容器
.tw-login {
  position: relative;
  flex: 1;
  padding: 32px 32px 32px 32px;
  font-size: $font-size-small;
  background: $color-bg-content;
  border-radius: 0 30px 0 30px;
}

// 切换登录类型
.tw-login-type {
  position: absolute;
  top: 0;
  right: 0;
  width: 102px;
  height: 98px;
  padding: 25px;
}

.tw-login-tipbox {
  position: absolute;
  top: -60px;
  right: 0;
  width: 150px;
  height: 44px;
  line-height: 35px;
  padding: 0 15px 0 15px;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  background-image: url("./images/tip-box.svg");
  background-repeat: no-repeat;
  background-size: contain;
  display: none;
}

.tw-login-type:hover > .tw-login-tipbox {
  display: block;
}

@media (max-width: 1439px) {
  .tw-login-type:hover > .tw-login-tipbox {
    display: none;
  }
}

.tw-login-tipbox > .tw-loginicon {
  position: relative;
  top: -1px;
  margin-right: 5px;
}

// 登录输入框
.tw-login-inputbox {
  position: relative;
}

.tw-login-inputbox .el-select {
  width: 100%;
}

.tw-login-inputbox > input,
.tw-login-inputbox .el-input__inner {
  width: 100%;
  height: 60px;
  line-height: 38px;
  padding: 0 48px 0 62px;
  background: #f6f7f9;
  border: 1px solid transparent;
  border-radius: 4px;
  -webkit-appearance: none;

  &:focus {
    border-color: $color-main;
    border-width: 2px;
  }
}

// 输入框图标
.tw-login-inputbox > .tw-loginicon {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 6px;
}

.tw-login-inputbox.xvalidation > input {
  width: 300px;
}

.tw-login-verifycodebox,
.tw-login-inputbox.xvalidation > img {
  position: absolute;
  top: 8px;
  right: 0;
  width: 80px;
  height: 42px;
}

.tw-login-verifycodebox {
  top: 2px;
  width: 85px;
  height: 55px;
}

.tw-loginbtn {
  height: 50px;
  line-height: 50px;
  margin-bottom: 50px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 6px #004a7e;
  border-radius: 10px;
  display: block;

  background: $color-main;
  box-shadow: 0px 13px 16px 1px rgba(94,117,255,0.23);
}

.tw-login-client {
  position: absolute;
  right: 32px;
  bottom: 30px;
  left: 32px;
  justify-content: space-between;
  display: flex;
}

.tw-login-client > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  white-space: nowrap;
  span{
    margin-top: 5px;
  }
}

.tw-login-client > a + a {
  margin-left: 10px;
}

.tw-loginpage-copyright {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 40px;
  font-size: $font-size-small;
  color: #c1dcff;
  text-align: center;
}

.tw-login .el-checkbox__label {
  font-size: $font-size-small;
}

.tw-login-weixin {
  display: flex;
  justify-content: center;
  .weixin {
    display: flex;
    height: 52px;
    cursor: pointer;
    padding-right: 15px;
    background: $color-bg-content;
    box-shadow: 0px 3px 6px 1px rgba(0,0,0,0.06);
    border-radius: 10px;
    line-height: 52px;
    border: 1px solid #EEEEEE;
  }
  img {
    width: 60px;
    height: 60px;
  }
}

// -------------------- 扫码登录 --------------------
.tw-login-qrcode {
  text-align: center;
}

.tw-login-qrcode > img {
  width: 380px;
  height: 350px;
  object-fit: cover;
}

.tw-modal.xappqrcode .tw-modal-window {
  width: 500px;
}

.tw-modal.xappqrcode .tw-modal-window-body {
  max-height: 520px;
}

.tw-appqrcode { 
  text-align: center;
}
.tw-appqrcode img {
  width: 350px;
  height: 350px;
}

.tw-qrcode-select {
  justify-content: center;
}

.tw-qrcode-select > .tw-qrcodegap {
  margin-right: 48px;
}


.tw-login-qrcodebox{
  position: relative;

  img{
    width: 200px;
    height: 200px;
  }
}

.tw-login-qrcodebox > .tw-qrcode-refresh{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba($color: #000000, $alpha: 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  p{
    font-size: 24px;
  }
  a{
    margin-top: 15px;
   }
}
.tw-login-download {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 64px;
  img {
    cursor: pointer;
    width: 20px;
    height: 20px;
  }
}

.tw-login-tabpanel {
  background: #EFF7FF;
  border-radius: 60px;
  display: flex;
  align-items: center;
  padding: 0;
}

.tw-login-tabitem {
  border-radius: 56px;
  padding: 10px 20px;
  color: $color-main;
  cursor: pointer;
}

.tw-login-tabitem.active {
  background-color: $color-main;
  color: #fff;
}

.tw-login-panel {
  min-height: 265px;
}
.mb-medium {
  margin-bottom: 20px;
}
.mb-tiny {
  margin-bottom: 10px;
}
.mb-large {
  margin-bottom: 30px;
}
.mt-small {
  margin-top: 15px;
}
.mt-medium {
  margin-top: 20px;
}
.pt-small {
  padding-top: 15px;
}
.pb-large {
  padding-bottom: 30px;
}
.ml-tiny {
  margin-left: 10px;
}
.tw-btn {
  display: inline-block;
  min-width: 2.02667rem;
  height: .96rem;
  line-height: .90667rem;
  padding: 0 .32rem;
  font-size: .37333rem;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 400;
}
.tw-btn.xweaking {
  color: #0081fa;
  background: #fff;
  border-color: #0081fa;
}

.tw-loginpage.inDialog {
  background: none;
  // height: 100%;
  max-width: 90%;
  padding: 0;

  .tw-loginpage-body {
    box-shadow: none;
    border: none;
    // max-width: 100%;
  //   height: 100%;
  }
}